# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=recoverdm
pkgver=0.20
pkgrel=1
pkgdesc='Recover damaged CD DVD and disks with bad sectors.'
groups=('blackarch' 'blackarch-forensic')
arch=('x86_64' 'aarch64')
url='http://www.vanheusden.com/recoverdm/'
license=('GPL')
depends=('glibc')
source=("http://web.archive.org/web/20150926094827if_/http://www.vanheusden.com/$pkgname/$pkgname-$pkgver.tgz")
sha512sums=('aa6d27e115986a94fdf589c9a10870d8170ecf6f3342c504cf974328c969d791986d5979fd2b9336a8c5b8424ca369321d76f09e4f4e2b14bec2080d171a734b')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 -t "$pkgdir/usr/bin/" mergebad $pkgname
  install -Dm 644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" readme.txt
}

